// defines Protocols between all the components of our multi-processes system.

// important initials:
//		tc2db (and db2tc) means top cam to db (comm between topCam and database)
//		fc2db (and db2fc) means database to front cam (comm between frontCam and database)
// if anything else is needed, just add in the same style. (aka ui2db etc)
// PLEASE FOLLOW THIS CONVENTION

#ifndef _PROTOCOL_H_
#define _PROTOCOL_H_

#include <string>
using std::string;

class Socket; // forward decleration

namespace Protocol {

	void tc2db_enetered (Socket &sock, unsigned long id);
	void tc2db_exited (Socket &sock, unsigned long id);
	void tc2db_parked (Socket &sock, unsigned long id, unsigned int x, unsigned int y);
	void tc2db_unparked (Socket &sock, unsigned int x, unsigned int y);
	void tc2db_video( Socket &sock , unsigned long id , string videoLocation );
	void fc2db_entered (Socket &sock, unsigned long licenseplate);
	void ui2db_carRequest (Socket &sock, unsigned long licenseplate);
	void ui2db_plotRequest (Socket &sock);
};

#endif
